/**************************************
 *
 * VLOOK 模板主题
 *
 * powered by MAX°孟兆
 *
 * QQ Group: 805502564
 * Telegram Channel: t.me/vlook_markdown
 * email: maxchow@qq.com
 *
 * For(wechat): wunyunpeng
 * 2023-5
 *
 *************************************/

@import "../font";
@import "../color";
@import "../common";

// 主题信息
@themeVer: "V25.0";
@themeName: "vlook-x-vueb";
@themeDesc: "× VueB";
@themeEmail: "wuyp@vip.qq.com";

// 指定字体主题
.applyFontStyle(local);
// 指定主题配套的圆角
.applyThemeRadius(big);
// 文档文字颜色
@vueTextLight: #213547;
@vueTextDark: #F0F2F4;
.applyDocTextColor(@vueTextLight, @vueTextDark);
// 文档背景使用图片
.applyDocBgImg(@docBgImgLight_Twill_R, @docBgImgDark_Twill_R);

:root {
    --thm-fav-logo-lg: none;
    --thm-fav-logo-dk: var(--thm-fav-logo-lg);
}

// 主题主色
@theme1: #42b883;
@theme2: #647ef0;
@theme3: #FFFFFF;
@theme1Dark: darken(@theme1, 20%);
@theme1Alt: lighten(@theme1, 50%);
@theme1AltDark: darken(@theme1, 35%);//@codeBgColorDark;
@theme2Dark: darken(@theme2, 20%);
@theme2Alt: lighten(@theme2, 25%);
@theme2AltDark: darken(@theme2, 65%);
@theme1Fade: rgba(red(@theme1), green(@theme1), blue(@theme1), @accOpacity);
@theme2Fade: rgba(red(@theme2), green(@theme2), blue(@theme2), @accOpacity);
@theme2Fade: rgba(red(@theme2), green(@theme2), blue(@theme2), 50%);

@themeForeColor: @theme1;
@themeForeColorFade: fade(@themeForeColor, 50%);
@themeBgColor: @theme3;
@themeBgColorFade: fade(@themeForeColor, 50%);
@themeBgColorDark: darken(@themeForeColor, 20%);
@themeBgColorAlt: lighten(@themeForeColor, 42%);

// 标题色
@headerColor: @theme1;
@headerColorDark: @theme1Dark;
// 渐变标题色 h1-h5
// @lgHeaderBg: linear-gradient(135deg, @theme1 25%, @theme2);
// @lgHeaderBgClip: text;
// @lgHeaderColor: transparent;
@lgH1Bg: linear-gradient(135deg, @theme1 25%, @theme2);
@lgH2Bg: @lgH1Bg;
@lgH3Bg: @lgH1Bg;
@lgH4Bg: @lgH1Bg;
@lgH5Bg: @lgH1Bg;
@lgH1BgClip: text;
@lgH2BgClip: @lgH1BgClip;
@lgH3BgClip: @lgH1BgClip;
@lgH4BgClip: @lgH1BgClip;
@lgH5BgClip: @lgH1BgClip;
@lgH1Color: transparent;
@lgH2Color: @lgH1Color;
@lgH3Color: @lgH1Color;
@lgH4Color: @lgH1Color;
@lgH5Color: @lgH1Color;

// 6 级标题前缀内容
@h6BeforeContent: "❖ ";
// @tocHeaderNumColor: @docTextColorLightFade;
@contentHeaderNumColor: @themeBgColorFade;
@headerBackground: linear-gradient(270deg, var(--h-bg-start), var(--h-bg-end));
@multiHeaderBG: @headerBackground;
@headerTextAlign: right;
@headerPadding: 10px;
// 不进行章节自动编号
@vChpAutoNum: "h1{{#none#}},h2{{#none#}},h3{{#none#}},h4{{#none#}},h5{{#none#}}";;
@h1BeforeContent: "";
@h2BeforeContent: "";
@h3BeforeContent: "";
@h4BeforeContent: "";
@h5BeforeContent: "";

@headerBorderRadius: var(--v-r-b) var(--v-r-b-xc);
// 标题的左边框
// @h1BorderLeft: 0;
// @h2BorderLeft: 0;
// @h3BorderLeft: 0;
// @h4BorderLeft: 0;
// @h5BorderLeft: 0;
// @h6BorderLeft: 0;
// 标题的上边框
// @h1BorderTop: none;
// @h2BorderTop: none;
// @h3BorderTop: none;
// @h4BorderTop: none;
// @h5BorderTop: none;
// @h6BorderTop: 0;
@h1Margin: 2em 0 0 0;
@h2Margin: 1.5em 0 0 0;
@h3Margin: 1.5em 0 0 0;
@h4Margin: 1em 0 0 0;
@h5Margin: 1em 0 0 0;

// 题注文字、背景色
@captionTextColor: var(--d-fc-a);
@captionBackground: none;

// 按钮色
@buttonForeColor: @theme3;
@buttonForeHoverColor: @theme3;
@buttonBgColor: @theme1;
// 文库按钮颜色
@docLibButtonForeColor: @buttonForeColor;
@docLibButtonForeHoverColor: @buttonForeHoverColor;
@docLibButtonBgColor: @buttonBgColor;
// 指定 kbd 按钮风格
.applyKbdRadius(big);

// 链接颜色
@aBorderWidth: 1px;
@aColor: @theme1;
@aColorDark: @theme1;
@aLineColor: @theme2;
@aHoverColor: @aLineColor;
@aActiveColor: desaturate(@aLineColor, 30%);

// 表格边框
@tblBdWidth: 1px;
@tableBorderColor: var(--d-fc-a);
@tableBorderWidth: 0;
@tableBorderLeftWidth: 0;
@tableBorderRightWidth: 0;
@tableBorderTopWidth: 0;
@tableBorderBottomWidth: 0;
@tableThBorderRightWidth: 0;
@tableTdBorderRightWidth: 0;
// 表格行 hover
@tableTrHoverBg: fade(@aHoverColor, 15%);
@tableTrHoverBgDark: fade(@aHoverColor, 25%);
// 表格圆角
// @tableBorderRadius: 0px;
// @tableBorderRadiusXC: 0px;
// 表格背景
@tableThColor: var(--d-fc-a);
@tableThBackground: inherit;
// 表格单元格阴影
@tableFirstThBoxShadow: none;
@tableThBoxShadow: 0 -1px 0 var(--tbl-cell-bd);
@tableThRepeaterBoxShadow: 0 -@tblBdWidth 0 var(--tbl-h-bd);
@tableFirstTdBoxShadow: 0 -@tblBdWidth 0 0 var(--tbl-h-bd);
@tableTdBoxShadow: 0 -1px 0 0 var(--tbl-cell-bd);

// 封面、封底文字位置及对齐方式
@coverTextAlign: center;
@coverTextPadding: 240px 60px 50px;
@coverTextColor: @themeForeColor;
@coverSubColor: @aLineColor;
@coverUnderlineColor: #606070;
@coverAuthorColor: @coverUnderlineColor;
@coverOwnerColor: @coverAuthorColor;

@backCoverTextAlign: center;
@backCoverTextPadding: 220px 60px 50px 60px;
@backCoverTextColor: @themeForeColor;

// 封面装饰性文本样式 before
@coverTextBeforeContent: "";
@coverTextBeforePosition: initial;
@coverTextBeforeLeft: initial;
@coverTextBeforeTop: initial;
@coverTextBeforeColor: initial;
@coverTextBeforeFontSize: initial;
@coverTextBeforeFontWeight: initial;
@coverTextBeforeOpacity: initial;
// 封面装饰性文本样式 after
@coverTextAfterContent: "";
@coverTextAfterTextAlign: initial;
@coverTextAfterLeft: initial;
@coverTextAfterTop: @coverTextBeforeTop;
@coverTextAfterRight: initial;
@coverTextAfterColor: @coverTextBeforeColor;
@coverTextAfterFontSize: @coverTextBeforeFontSize;

// 对比度边框色，用于主题色与背景色对比度比较低时的边缘视觉识别
@contrastBorder: 0 0 0 0 transparent;
@contrastBorderForCover: 0 0 0 2px fade(@themeForeColor, 20%) inset;

// 封面背景设置
@coverBackgroundColor: @themeBgColor;
@coverBackgroundImage: none;
@coverBackgroundSize: auto, auto, 100% 131px, 100% 220px, auto;
@coverBackgroundRepeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
@coverBackgroundPosition: center 120px, center 850px, bottom, bottom, center 60px;
// 封底背景设置
@backCoverBackgroundColor: @coverBackgroundColor;
@backCoverBackgroundImage: @coverBackgroundImage;
@backCoverBackgroundSize: auto, auto, 100% 131px, 100% 220px, auto;
@backCoverBackgroundRepeat: @coverBackgroundRepeat;
@backCoverBackgroundPosition: center 120px, center 450px, bottom, bottom center, center -260px;

@import "../base";

// 封面装饰文本样式 before
@{coverAfterYAML}::before,
@{coverWithoutYAML}::before,
@{coverAfterYAML}::after,
@{coverWithoutYAML}::after {
    content: "⟨" !important;
    position: absolute;
    left: 40px;
    top: 200px;
    color: @coverTextColor;
    font-size: 5em;
    font-weight: lighter;
    opacity: .5;
}

// 封面装饰文本样式 after
@{coverAfterYAML}::after,
@{coverWithoutYAML}::after {
    content: "⟩" !important;
    text-align: right;
    left: auto;
    top: 200px;
    right: 40px;
    color: @coverTextColor;
    font-size: 5em;
}

// 生成指定风格的徽章样式
.genBadgeStyle(cap);

// 生成 GSA 样式
.genGSA_simple();
